<?php 
	namespace Admin\Controller;
	use Think\Controller;
	//后台登录控制器
	class CommonController extends Controller{
		public function _initialize(){
			header('Content-Type:text/html;charset=UTF-8');
			if(!isset($_SESSION['admin_uid'])){
				$this->redirect('login/index');
			}
		}
	}
 ?>